home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / BOX.C < prev    next >
Text File  |  1992-11-21  |  2KB  |  48 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef box
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_box = "$Header: c:/curses/portable/RCS/box.c%v 2.0 1992/11/15 03:28:51 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   box()        - draw box
  15.  
  16.   X/Open Description:  
  17.        A box is drawn around the edge of the window.  The characters
  18.        vert and hor are the characters used to draw the box.  If vert or
  19.        hor are zero, then appropriate default characters will be used.
  20.  
  21.   PDCurses Description:
  22.        See border() for additional control over the sides and corners
  23.        of the box drawn.
  24.  
  25.   X/Open Return Value:
  26.        The box() function returns OK on success and ERR on error.
  27.  
  28.   PDCurses Errors:
  29.        No errors are defined for these functions.
  30.  
  31.   Portability:
  32.        PDCurses        int box( WINDOW* win, chtype vert, chtype hor );
  33.        X/Open Dec '88  int box( WINDOW* win, chtype vert, chtype hor );
  34.        BSD Curses      int box( WINDOW* win, chtype vert, chtype hor );
  35.        SYS V Curses    int box( WINDOW* win, chtype vert, chtype hor );
  36.  
  37. **man-end**********************************************************************/
  38.  
  39. int    box( WINDOW *win, chtype vert, chtype hor )
  40. {
  41.        if  (!vert || !hor)     /*
  42.        {                       * SYSV Fix Courtesy of Augustine Cano
  43.                vert= ACS_VLINE;* afc@shibaya.lonestar.org
  44.                hor = ACS_HLINE;* 19920520
  45.        }                       */
  46.        return( wbox( win, 0, 0, 0, 0, vert, hor ) );
  47. }
  48.